﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Admin/Admin.Master" AutoEventWireup="true" CodeBehind="Comment_Manage.aspx.cs" Inherits="TimKen.Web.Admin.Product.Comment_Manage" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentLinkAction" runat="server">

    <span class="action-span"><a href="Product_List.aspx">
        <%=GetLangString("MenuProductList")%></a></span>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentTitle" runat="server">
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="ContentMain" runat="server">
 
                       <div class="list-div">
        <asp:GridView ID="gvCommentList" runat="server" AutoGenerateColumns="False" OnRowCommand="gvCommentList_RowCommand"
            CssClass="grid">
            <Columns>
               
                
                   <asp:TemplateField>
                    <ItemStyle Width="200" HorizontalAlign="Center" />
                    <HeaderTemplate>
                        评论人
                    </HeaderTemplate>
                    <ItemTemplate>
                         <%#Eval("Creator")%>
                    </ItemTemplate>
                </asp:TemplateField>
                
                
               
                   <asp:TemplateField>
                    <ItemStyle Width="200" HorizontalAlign="Center" />
                    <HeaderTemplate>
                        评论时间
                    </HeaderTemplate>
                    <ItemTemplate>
                         <%#Eval("CreateTime")%>
                    </ItemTemplate>
                </asp:TemplateField>
                
                
                               
                   <asp:TemplateField>
                    <ItemStyle Width="200" HorizontalAlign="Center" />
                    <HeaderTemplate>
                        评论内容
                    </HeaderTemplate>
                    <ItemTemplate>
                           <%#Eval("Content").ToString().Length > 100?Eval("Content").ToString().Substring(0,100)+ "....":Eval("Content").ToString()%>
                    </ItemTemplate>
                </asp:TemplateField>
                
                
                
                
                
                <asp:TemplateField>
                    <ItemStyle Width="80" HorizontalAlign="Center" />
                    <HeaderTemplate>
                        <%=GetLangString("Operation")%>
                    </HeaderTemplate>
                    <ItemTemplate>
                        <asp:ImageButton ID="btnEdit" runat="server" ToolTip='<%#GetLangString("Edit")%>'
                            CommandName="mod" CommandArgument='<%#Eval("CommentID")%>' ImageUrl="~/Admin/images/icon_edit.gif" />
                        <asp:ImageButton ID="btnDelete" runat="server" ToolTip='<%#GetLangString("Delete")%>'
                            CommandName="del" CommandArgument='<%#Eval("CommentID")%>' ImageUrl="~/Admin/images/icon_drop.gif"
                            OnClientClick="return deleteConfirm()" />
                    </ItemTemplate>
                </asp:TemplateField>
            </Columns>
        </asp:GridView>
        
    </div>
    <div class="main-div">
        <table width="100%">
            <tr>
                <th class="label">
                  
                </th>
                <td>
                   <asp:Label  ID="lablCommentID" runat="server"  Visible="false"></asp:Label>
                </td>
            </tr>
            <tr>
                <th class="label">
                     评论人：
                </th>
                <td>
                   <asp:Label  ID="lblCreator" runat="server"   ></asp:Label>
                </td>
            </tr>
            <tr>
                <th class="label">
                    评论时间：
                </th>
                <td>
                     <asp:Label  ID="lblCreate" runat="server"   ></asp:Label>
                </td>
            </tr>
            
                 <tr>
                <th class="label">
                  评论内容：
                </th>
                <td>
                    <asp:TextBox runat="server" ID="txtContent"  TextMode="MultiLine"  Rows="10" Width="200" ></asp:TextBox>
                </td>
            </tr>
            
            
            
            <tr>
                <th class="label">
                </th>
                <td>
                    <asp:Button ID="btnSave" runat="server" OnClick="btSave_Click" CssClass="button"  Text="保存" />
                </td>
            </tr>
        </table>
    </div>
     
</asp:Content>
